package com.huadao.cart_ccs.experiment.adjustTemperature;

import com.huadao.cart_ccs.modle.TemperatureModle;

public class AdjustTemperaturePresenter extends IAdjustTemperatureContract.IAdjustTemperaturePresenter{
    private TemperatureModle temperatureModle;

    public AdjustTemperaturePresenter(IAdjustTemperatureContract.IAdjustTemperatureView baseView) {
        attachView(baseView);
        temperatureModle=new TemperatureModle();
    }

    @Override
    void adjust() {
        baseView.onAdjust(baseView.getAdjust());
    }

    @Override
    void setTemperature(double temperature) {
        temperatureModle.setTemperature(temperature);
    }

    @Override
    void readTemperature() {
        temperatureModle.readTemperature();
    }
}
